//
//  SystemSettting.h
//  GKBHouse
//
//  Created by  on 12-7-16.
//  Copyright (c) 2012年 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface SystemSettting : UIViewController<UITextFieldDelegate, UIActionSheetDelegate>
{
    //验证界面
    IBOutlet UIView *verificationView;
    IBOutlet UILabel *verifiTitle;
    IBOutlet UILabel *passTip;
    IBOutlet UITextField *passWord;
    IBOutlet UIButton *verifiOk;
    
    //系统参数界面
    IBOutlet UILabel *serverLabel;
    IBOutlet UILabel *hostLabel;
    IBOutlet UILabel *portLabel;
//    IBOutlet UILabel *unitLabel;
    IBOutlet UILabel *datasortLabel;
//    IBOutlet UILabel *refreshRateLabel;
    IBOutlet UILabel *localUserLabel;
    
    IBOutlet UITextField *serverText;
    IBOutlet UITextField *hostText;
    IBOutlet UITextField *portText;
    IBOutlet UITextField *sortText;
    IBOutlet UITextField *refreshRateText;
    IBOutlet UITextField *localUserText;
//    IBOutlet UIButton *button63;
//    IBOutlet UIButton *button112;
    IBOutlet UIButton *sortButton;
//    IBOutlet UIButton *refreshRateButton;
    IBOutlet UIButton *localUserButton;
    
    IBOutlet UIButton *setOk;

}
@property (retain) NSArray *sortTypes;
@property (assign) NSInteger sortSelectedIndex;
//@property (retain) NSArray *refreshTypes;
//@property (assign) NSInteger refreshIndex;
@property (retain) NSArray *successLoginUserArray;

+ (NSString *)systemSetFilePath;
+ (NSString *)systemSettingType:(NSString *)type;
+ (NSString *)systemUrl;
+ (NSInteger)systemRate;
+ (NSInteger)sortType;
+ (NSString *)localUserName;

- (void)initTopBar;
- (void)initVerificationView;
- (void)removeVerifi;

- (void)initLabel;
- (void)initSystemSet;



- (void)setOkAction;

//- (void)unitSelected:(UIButton *)but;

- (void)sortButtonAction;
//- (void)refreshButtonAction;
@end
